﻿using System;

namespace Terraria.ModLoader.Default
{
	// Token: 0x02000306 RID: 774
	internal class MysteryTileFrame
	{
		// Token: 0x170001EE RID: 494
		// (get) Token: 0x06001D6D RID: 7533 RVA: 0x00014DB8 File Offset: 0x00012FB8
		public short FrameX
		{
			get
			{
				return this.frameX;
			}
		}

		// Token: 0x170001EF RID: 495
		// (get) Token: 0x06001D6E RID: 7534 RVA: 0x00014DC0 File Offset: 0x00012FC0
		public short FrameY
		{
			get
			{
				return this.frameY;
			}
		}

		// Token: 0x170001F0 RID: 496
		// (get) Token: 0x06001D6F RID: 7535 RVA: 0x00014DC8 File Offset: 0x00012FC8
		// (set) Token: 0x06001D70 RID: 7536 RVA: 0x00014DDD File Offset: 0x00012FDD
		public int FrameID
		{
			get
			{
				return (int)this.frameY * 32768 + (int)this.frameX;
			}
			set
			{
				this.frameX = (short)(value % 32768);
				this.frameY = (short)(value / 32768);
			}
		}

		// Token: 0x06001D71 RID: 7537 RVA: 0x00014DFB File Offset: 0x00012FFB
		public MysteryTileFrame(int value)
		{
			this.FrameID = value;
		}

		// Token: 0x06001D72 RID: 7538 RVA: 0x00014E0A File Offset: 0x0001300A
		public MysteryTileFrame(short frameX, short frameY)
		{
			this.frameX = frameX;
			this.frameY = frameY;
		}

		// Token: 0x040018FC RID: 6396
		private short frameX;

		// Token: 0x040018FD RID: 6397
		private short frameY;
	}
}
